[IA64] vcpu_setcontext: only set cr_irr if VGCF_SET_CR_IRR flag is set.
authorAlex Williamson <alex.williamson@hp.com>
Wed, 28 Nov 2007 19:32:28 +0000 (12:32 -0700)
committerAlex Williamson <alex.williamson@hp.com>
Wed, 28 Nov 2007 19:32:28 +0000 (12:32 -0700)
commit8d604f8b23d4575064d1e28ced673c6d4574058d
treee5fc63f75e77b1d596c80345c5a592a23126664e
parent8e7de5ff408be2662ede884c647f2e158cad6811
[IA64] vcpu_setcontext: only set cr_irr if VGCF_SET_CR_IRR flag is set.

cr_irr can be modified even when a vcpu is blocked (by itv handler).
Unconditionally setting cr_irr can trouble debugger as it may clear a bit
of cr_irr and thus miss an interrupt.  This can be very annoying if the
interrupt is itv and the vcpu is inside PAL_HALT_LIGHT (the vcpu stays
blocked forever).

Signed-off-by: Tristan Gingold <tgingold@free.fr>
tools/libxc/ia64/xc_ia64_linux_restore.c
xen/arch/ia64/vmx/vmx_vcpu_save.c
xen/include/public/arch-ia64.h